<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\common\library\Kuaidi;
use app\common\model\Setting;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
    	$kd = Kuaidi::getInstance();
    	$kd->query('shentong','773024930119154');
//	    $kd->query('shunfeng','SF1980167388841');
//        $this->success('请求成功');
    }
    
    /**
     * 设置
     */
    public function setting() {
    	$row = Setting::get(1);
    	$this->success('查询成功', $row);
    }
}
